import Vue from "vue";
import Vuex from "vuex";

import getters from './getters'
import home from "./home/index";
import search from "./search/index";
import detail from "./detail/index";
import cart from "./cart/index";
import register from "./register/index";
import trade from "./trade/index";

Vue.use(Vuex)

export default new Vuex.Store({
  modules:{
    home,
    search,
    detail,
    cart,
    register,
    trade
  },
  getters
})